<html>
	<head>
		<meta charset="utf-8"/>
		<title>BApplication</title>
		<link rel="stylesheet" type="text/css" href="../style.css"/>
	</head>
	<body>
		<h2>public</h2>
		<table id="public">
			<tr><td align="right"/><td><a href="#BApplication(int,char**)">BApplication</a>(int argc = 0, char** argv = 0);</td></tr>
			<tr><td align="right"/><td><a href="#~BApplication()">~BApplication</a>();</td></tr>
			<tr><td align="right">static void </td><td><a href="#setStyleSheet(const BString&)">setStyleSheet</a>(const BString& sheet);</td></tr>
			<tr><td align="right">static const BString& </td><td><a href="#styleSheet()">styleSheet</a>();</td></tr>
			<tr><td align="right">static void </td><td><a href="#setStyle(BStyle*)">setStyle</a>(BStyle* style);</td></tr>
			<tr><td align="right">static BStyle* </td><td><a href="#style()">style</a>();</td></tr>
			<tr><td align="right">static void </td><td><a href="#setFont(const BString&,int)">setFont</a>(const BString& family, int size = 20);</td></tr>
			<tr><td align="right">static void </td><td><a href="#setFont(BFont*)">setFont</a>(BFont* font);</td></tr>
			<tr><td align="right">static const BFont* </td><td><a href="#font()">font</a>();</td></tr>
			<tr><td align="right">static void </td><td><a href="#setFrequency(int)">setFrequency</a>(int frequency);</td></tr>
			<tr><td align="right">static int </td><td><a href="#frequency()">frequency</a>();</td></tr>
			<tr><td align="right">static int </td><td><a href="#realFrequency()">realFrequency</a>();</td></tr>
			<tr><td align="right">static void </td><td><a href="#done(int)">done</a>(int code = 0);</td></tr>
			<tr><td align="right">static int </td><td><a href="#code()">code</a>();</td></tr>
			<tr><td align="right">static int </td><td><a href="#execute()">execute</a>();</td></tr>
			<tr><td align="right">static void </td><td><a href="#addPluginPath(const BString&)">addPluginPath</a>(const BString& pluginPath);</td></tr>
			<tr><td align="right">static void </td><td><a href="#addFontPath(const BString&)">addFontPath</a>(const BString& fontPath);</td></tr>
			<tr><td align="right">static void </td><td><a href="#addDataPath(const BString&)">addDataPath</a>(const BString& dataPath);</td></tr>
			<tr><td align="right">static void </td><td><a href="#removePluginPath(const BString&)">removePluginPath</a>(const BString& pluginPath);</td></tr>
			<tr><td align="right">static void </td><td><a href="#removeFontPath(const BString&)">removeFontPath</a>(const BString& fontPath);</td></tr>
			<tr><td align="right">static void </td><td><a href="#removeDataPath(const BString&)">removeDataPath</a>(const BString& dataPath);</td></tr>
			<tr><td align="right">static void </td><td><a href="#removePluginPath(int)">removePluginPath</a>(int index);</td></tr>
			<tr><td align="right">static void </td><td><a href="#removeFontPath(int)">removeFontPath</a>(int index);</td></tr>
			<tr><td align="right">static void </td><td><a href="#removeDataPath(int)">removeDataPath</a>(int index);</td></tr>
			<tr><td align="right">static int </td><td><a href="#pluginPathCount()">pluginPathCount</a>();</td></tr>
			<tr><td align="right">static int </td><td><a href="#fontPathCount()">fontPathCount</a>();</td></tr>
			<tr><td align="right">static int </td><td><a href="#dataPathCount()">dataPathCount</a>();</td></tr>
			<tr><td align="right">static const BString& </td><td><a href="#pluginPath(int)">pluginPath</a>(int index);</td></tr>
			<tr><td align="right">static const BString& </td><td><a href="#fontPath(int)">fontPath</a>(int index);</td></tr>
			<tr><td align="right">static const BString& </td><td><a href="#dataPath(int)">dataPath</a>(int index);</td></tr>
		</table>
		<h2>protected</h2>
		<table id="protected"/>
		<div id="desc">
			<h2>Detailed Description : </h2>
			<p>The BApplication class manages the GUI application's control flow and main settings. It handles widget specific initialization, finalization. BApplication will initialize a lot of useful shits such as styles, paths,  sockets and so on. It is recommended to initialize an application first in your program.</p>
		</div>
		<h2 id="docs">Member Function Documentation</h2>
		<div id="BApplication(int,char**)">
			<h3>BApplication(int argc = 0, char** argv = 0);</h3>
			<p>Initializes an application with system input argc and argv, but don't do anything about these two params. </p>
		</div>
		<div id="~BApplication()">
			<h3>~BApplication();</h3>
			<p>Finalizes appliction by release a lot of thing.</p>
		</div>
		<div id="setStyleSheet(const BString&)">
			<h3>static void setStyleSheet(const BString& sheet);</h3>
			<p>Install a style sheet for this applicaiton. If sheet is a file name the file will be load to create styles, otherwise the sheet will be read as text to create styles.</p>
		</div>
		<div id="styleSheet()">
			<h3>static const BString& styleSheet();</h3>
			<p>Get style sheet installed in this application.</p>
		</div>
		<div id="setStyle(BStyle*)">
			<h3>static void setStyle(BStyle* style);</h3>
			<p>Installs a style for this application.</p>
		</div>
		<div id="style()">
			<h3>static BStyle* style();</h3>
			<p>Get a style installed in this application.</p>
		</div>
		<div id="setFont(const BString&,int)">
			<h3>static void setFont(const BString& family, int size = 20);</h3>
			<p>Installs a font to the style of this application.</p>
		</div>
		<div id="setFont(BFont*)">
			<h3>static void setFont(BFont* font);</h3>
		</div>
		<div id="font()">
			<h3>static const BFont* font();</h3>
		</div>
		<div id="setFrequency(int)">
			<h3>static void setFrequency(int frequency);</h3>
			<p>Set application's frequency which means the application main loop will try to update how many times a second. Default frequency is 30. Sometimes program has too much work to do the real frequency could be less than this number.</p>
		</div>
		<div id="frequency()">
			<h3>static int frequency();</h3>
			<p>Get the frequency of application.</p>
		</div>
		<div id="realFrequency()">
			<h3>static int realFrequency();</h3>
			<p>Get the real frequency of this application.</p>
		</div>
		<div id="done(int)">
			<h3>static void done(int code = 0);</h3>
			<p>This method will exit the application with return code.</p>
		</div>
		<div id="code()">
			<h3>static int code();</h3>
			<p>If program is over you can catch the result code using this function.</p>
		</div>
		<div id="execute()">
			<h3>static int execute();</h3>
			<p>Start the main loop of application, when this return, you can call this function to restart the main loop.</p>
		</div>
		<div id="addPluginPath(const BString&)">
			<h3>static void addPluginPath(const BString& pluginPath);</h3>
			<p>Add a local plugin path which is highest priority to look for plugins.</p>
		</div>
		<div id="addFontPath(const BString&)">
			<h3>static void addFontPath(const BString& fontPath);</h3>
			<p>Add a local font path which has highest priority for looking for font file.</p>
		</div>
		<div id="addDataPath(const BString&)">
			<h3>static void addDataPath(const BString& dataPath);</h3>
			<p>Add a local data path which has highest priority for finding a data file.</p>
		</div>
		<div id="removePluginPath(const BString&)">
			<h3>static void removePluginPath(const BString& pluginPath);</h3>
			<p>Remove a local plugin path from application's plugin path list.</p>
		</div>
		<div id="removeFontPath(const BString&)">
			<h3>static void removeFontPath(const BString& fontPath);</h3>
		</div>
		<div id="removeDataPath(const BString&)">
			<h3>static void removeDataPath(const BString& dataPath);</h3>
		</div>
		<div id="removePluginPath(int)">
			<h3>static void removePluginPath(int index);</h3>
		</div>
		<div id="removeFontPath(int)">
			<h3>static void removeFontPath(int index);</h3>
		</div>
		<div id="removeDataPath(int)">
			<h3>static void removeDataPath(int index);</h3>
		</div>
		<div id="pluginPathCount()">
			<h3>static int pluginPathCount();</h3>
		</div>
		<div id="fontPathCount()">
			<h3>static int fontPathCount();</h3>
		</div>
		<div id="dataPathCount()">
			<h3>static int dataPathCount();</h3>
		</div>
		<div id="pluginPath(int)">
			<h3>static const BString& pluginPath(int index);</h3>
		</div>
		<div id="fontPath(int)">
			<h3>static const BString& fontPath(int index);</h3>
		</div>
		<div id="dataPath(int)">
			<h3>static const BString& dataPath(int index);</h3>
		</div>
	</body>
</html>